home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 6-Apple⁄DEC Alliance / Solutions & Networking Guide / Macintosh Networking Guide / Macintosh Networking Guide / card_5645.txt < prev    next >
Text File  |  1990-04-17  |  16KB  |  659 lines

  1. -- card: 5645 from stack: in
  2. -- bmap block id: 11352
  3. -- flags: 0000
  4. -- background id: 18894
  5. -- name: Network Room
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global env,service,holder,prodname4,prodname5,network1,sol
  9.   put env into cd fld "CPU"
  10.   put empty into cd fld "Protocol"
  11.   put empty into cd fld "Protocol2"
  12.   set hilite of bkgnd btn "Application Level" to false
  13.   set hilite of bkgnd btn "Network Level" to true
  14.   set hilite of bkgnd btn "Hardware Level" to false
  15.   set hilite of bkgnd btn id 52 to false
  16.   set hilite of bkgnd btn id 43 to false
  17.   put "Network Level" into fld "Floorname"
  18.   if env is "Mac" then
  19.     put "Macintosh" && sol && "Room" into fld "Solname"
  20.   else
  21.     put env && sol && "Room" into fld "Solname"
  22.   end if
  23.   put env && "Network Services Room" & return & "click on the Macintosh" into fld "Tell"
  24.   put card field (env && "Network¬†Services") of card "Mac Grid" into holder
  25.   if holder is empty
  26.   then
  27.   put return & "No" && env && "Solutions" & return & "installed in this version" into fld "Tell"
  28.   exit openCard
  29. end if
  30. if service is empty then
  31.   if env is "Digital" then put "File Service" into service
  32.   if env is "IBM" then put "Terminal Emulation" into service
  33.   if env is "Mac" then put "File Service" into service
  34.   if env is "PC" then put "File Service" into service
  35.   if env is "Tandem" then put "Terminal Emulation" into service
  36.   if env is "UNIX" then put "File service" into service
  37.   if env is "Wang" then put "Terminal Emulation" into service
  38.   if network1 <> empty then
  39.     if network1 contains "File Transfer" then put "File Transfer" into service
  40.     if network1 contains "CL/1" then put "File Service" into service
  41.     if network1 contains "Client" then put "File Service" into service
  42.     if network1 contains "Translation" then put "Translation" into service
  43.     if network1 contains "Not" then put "Terminal Emulation" into service
  44.   end if
  45. end if
  46. put service into cd fld "Service"
  47. --‚àÜ Set up side 1 data
  48. put "Macintosh side:" & return into cd fld "Side1"
  49. repeat with i = 1 to the number of lines of holder
  50.   if item 3 of line i of holder contains service then
  51.     if item 1 of line i of holder <> empty then
  52.       put item 1 of line i of holder & return after cd fld "Side1"
  53.     end if
  54.   end if
  55. end repeat
  56. if line 2 of cd fld "Side1" is empty then
  57.   put "No products of this type are installed in this version" after cd fld "Side1"
  58. end if
  59. if prodName4 <> empty then
  60.   put prodname4 into fld "Prodname"
  61.   set hilite of bkgnd btn id 43 to true
  62.   put "click for product info" into fld "click"
  63. end if
  64. --‚àÜ And now side two (the right)
  65. put env & " side:" & return into cd fld "Side2"
  66. repeat with i = 1 to the number of lines of holder
  67.   if item 3 of line i of holder contains service then
  68.     if item 2 of line i of holder <> empty then
  69.       put item 2 of line i of holder & return after cd fld "Side2"
  70.     end if
  71.   end if
  72. end repeat
  73. if line 2 of cd fld "Side2" is empty then
  74.   put "No products of this type are installed in this version" after cd fld "Side2"
  75. end if
  76. if prodName5 <> empty then
  77.   put prodname5 into fld "Prodname2"
  78.   set hilite of bkgnd btn id 52 to true
  79.   put "click for product info" into fld "click2"
  80. end if
  81. pass openCard
  82. end openCard
  83.  
  84. on closeCard
  85.   hide cd fld "Side1"
  86.   put empty into cd fld "Side1"
  87.   hide cd fld "Side2"
  88.   put empty into cd fld "Side2"
  89.   put empty into fld "Prodname"
  90.   put empty into fld "Prodname2"
  91.   --put empty into cd fld "CPU"
  92.   put "" into fld "click"
  93.   put "" into fld "click2"
  94.   set hilite of bkgnd btn id 43 to false
  95.   set hilite of bkgnd btn id 52 to false
  96.   pass closeCard
  97. end closeCard
  98.  
  99. on clean
  100.   put empty into cd fld "Protocol"
  101.   put empty into cd fld "Protocol2"
  102.   put empty into cd fld "Service"
  103.   put empty into fld "Network"
  104.   pass clean
  105. end clean
  106.  
  107. on clean1
  108.   global prodname4,prodname5,protocol,protcol1
  109.   put empty into cd fld "Protocol"
  110.   put empty into cd fld "Protocol2"
  111.   put empty into cd fld "Service"
  112.   put empty into fld "Prodname"
  113.   put empty into fld "Prodname2"
  114.   set hilite of bkgnd btn id 52 to false
  115.   set hilite of bkgnd btn id 43 to false
  116.   put empty into prodname4
  117.   put empty into prodname5
  118.   put empty into protocol
  119.   put empty into protocol1
  120. end clean1
  121.  
  122.  
  123. -- part 1 (button)
  124. -- low flags: 00
  125. -- high flags: 0000
  126. -- rect: left=0 top=0 right=305 bottom=31
  127. -- title width / last selected line: 0
  128. -- icon id / first selected line: 0 / 0
  129. -- text alignment: 1
  130. -- font id: 0
  131. -- text size: 12
  132. -- style flags: 0
  133. -- line height: 16
  134. -- part name: 
  135. ----- HyperTalk script -----
  136. on mouseUp
  137.   global env,service,hall,currentfloor,lastRoom
  138.   put env && service into lastRoom
  139.   put "2  Network Services" into currentfloor
  140.   set lockscreen to true
  141.   go to cd hall
  142.   unlock screen with zoom out
  143. end mouseUp
  144.  
  145. on mouseEnter
  146.   changeCurs 6069
  147.   put "Exit to Hall" & return & "click to go to hall" into fld "Tell"
  148. end mouseEnter
  149.  
  150. on mouseLeave
  151.   changeCurs 69
  152.   put empty into fld "Tell"
  153. end mouseLeave
  154.  
  155.  
  156. -- part 7 (field)
  157. -- low flags: 01
  158. -- high flags: 0000
  159. -- rect: left=401 top=145 right=170 bottom=454
  160. -- title width / last selected line: 0
  161. -- icon id / first selected line: 0 / 0
  162. -- text alignment: 0
  163. -- font id: 3
  164. -- text size: 9
  165. -- style flags: 10240
  166. -- line height: 12
  167. -- part name: CPU
  168.  
  169.  
  170. -- part 63 (field)
  171. -- low flags: 01
  172. -- high flags: 0001
  173. -- rect: left=242 top=67 right=84 bottom=427
  174. -- title width / last selected line: 0
  175. -- icon id / first selected line: 0 / 0
  176. -- text alignment: 0
  177. -- font id: 156
  178. -- text size: 14
  179. -- style flags: 16640
  180. -- line height: 18
  181. -- part name: Service
  182. ----- HyperTalk script -----
  183. on mouseEnter
  184.   put "Current" & return & "Network Service" into fld "Tell"
  185. end mouseEnter
  186.  
  187. on mouseLeave
  188.   put empty into fld "Tell"
  189. end mouseleave
  190.  
  191.  
  192.  
  193. -- part 67 (field)
  194. -- low flags: 01
  195. -- high flags: 0000
  196. -- rect: left=57 top=85 right=119 bottom=242
  197. -- title width / last selected line: 0
  198. -- icon id / first selected line: 0 / 0
  199. -- text alignment: 65535
  200. -- font id: 242
  201. -- text size: 9
  202. -- style flags: 0
  203. -- line height: 12
  204. -- part name: Protocol
  205. ----- HyperTalk script -----
  206. on mouseEnter
  207.   put "Product Protocol" & return & "go to Hardware for info" into fld "Tell"
  208. end mouseEnter
  209.  
  210. on mouseLeave
  211.   changeCurs 69
  212.   put empty into fld "Tell"
  213. end mouseleave
  214.  
  215.  
  216.  
  217. -- part 69 (button)
  218. -- low flags: 00
  219. -- high flags: A003
  220. -- rect: left=179 top=217 right=238 bottom=338
  221. -- title width / last selected line: 0
  222. -- icon id / first selected line: 0 / 0
  223. -- text alignment: 1
  224. -- font id: 0
  225. -- text size: 12
  226. -- style flags: 8192
  227. -- line height: 16
  228. -- part name: Click for Network Services
  229. ----- HyperTalk script -----
  230.  
  231. on mouseEnter
  232.   ChangeCurs 6069
  233.   put "Macintosh Services Chooser" & return & "click to change service" into fld "Tell"
  234. end mouseEnter
  235.  
  236. on mouseLeave
  237.   changeCurs 69
  238.   put empty into fld "Tell"
  239. end mouseleave
  240.  
  241. On mouseDown
  242.   Global ClickSND
  243.   play ClickSND
  244. End mouseDown
  245.  
  246. on mouseUp
  247.   Global prodname4,prodname5,protocol
  248.   get the loc of me
  249.   put it into MLoc
  250.   Put "Zoomer " & MLoc & "," & MLoc & "," & "254,151,278,166" into Zoomy
  251.   do Zoomy
  252.   Zoomer 254,151,278,166,8,4,507,336
  253.   unlock screen with dissolve
  254.   set cursor to busy
  255.   put "" into fld "Prodname"
  256.   put "" into fld "Prodname2"
  257.   hide cd fld "Side1"
  258.   hide cd fld "Side2"
  259.   set hilite of bkgnd btn id 43 to false
  260.   set hilite of bkgnd btn id 52 to false
  261.   put empty into cd fld "Side1"
  262.   put empty into cd fld "Side2"
  263.   put empty into cd fld "Protocol"
  264.   put empty into cd fld "Protocol2"
  265.   put "" into fld "click"
  266.   put "" into fld "click2"
  267.   put empty into prodname4
  268.   put empty into prodname5
  269.   put empty into protocol
  270.   set lockscreen to true
  271.   push card
  272.   go to cd "White"
  273.   go to cd "Chooser"
  274.   set cursor to hand
  275.   unlock screen with dissolve
  276. end mouseUp
  277.  
  278.  
  279.  
  280.  
  281. -- part 71 (field)
  282. -- low flags: 01
  283. -- high flags: 0000
  284. -- rect: left=241 top=85 right=123 bottom=435
  285. -- title width / last selected line: 0
  286. -- icon id / first selected line: 0 / 0
  287. -- text alignment: 0
  288. -- font id: 242
  289. -- text size: 9
  290. -- style flags: 0
  291. -- line height: 12
  292. -- part name: Protocol2
  293. ----- HyperTalk script -----
  294. on mouseEnter
  295.   put "Product Protocol" & return & "go to Hardware for info" into fld "Tell"
  296. end mouseEnter
  297.  
  298. on mouseLeave
  299.   changeCurs 69
  300.   put empty into fld "Tell"
  301. end mouseleave
  302.  
  303. on mouseUp
  304.   global Help
  305.   if Help then exit mouseUp
  306.   send mouseUp to bkgnd btn "Hardware Level"
  307. end mouseUp
  308.  
  309.  
  310. -- part 74 (button)
  311. -- low flags: 00
  312. -- high flags: A000
  313. -- rect: left=78 top=198 right=210 bottom=129
  314. -- title width / last selected line: 0
  315. -- icon id / first selected line: 0 / 0
  316. -- text alignment: 0
  317. -- font id: 242
  318. -- text size: 9
  319. -- style flags: 0
  320. -- line height: 12
  321. -- part name: services
  322. ----- HyperTalk script -----
  323. on mouseUp
  324.   global Help
  325.   if Help then exit mouseUp
  326.   send mouseUp to btn id 69
  327. end mouseUp
  328.  
  329. on mouseEnter
  330.   global Help
  331.   if Help then
  332.     put "'chooser' Button" & return & return & "Click this button to go to the Chooser screen" && "and select other network services" into field explainer
  333.   else
  334.     ChangeCurs 13000
  335.     put "'Chooser' Button" & return & "click to change service" into fld "Tell"
  336.   end if
  337. end mouseEnter
  338.  
  339. on mouseLeave
  340.   global Help
  341.   if help then
  342.   else
  343.     changeCurs 6069
  344.     put empty into fld "Tell"
  345.   end if
  346. end mouseleave
  347.  
  348. On mouseDown
  349.   Global ClickSND
  350.   play ClickSND
  351. End mouseDown
  352.  
  353.  
  354. -- part 75 (button)
  355. -- low flags: 00
  356. -- high flags: A000
  357. -- rect: left=410 top=198 right=210 bottom=461
  358. -- title width / last selected line: 0
  359. -- icon id / first selected line: 0 / 0
  360. -- text alignment: 0
  361. -- font id: 242
  362. -- text size: 9
  363. -- style flags: 0
  364. -- line height: 12
  365. -- part name: services
  366. ----- HyperTalk script -----
  367. on mouseUp
  368.   global Help
  369.   if Help then exit mouseUp
  370.   send mouseUp to btn id 70
  371. end mouseUp
  372.  
  373. on mouseEnter
  374.   global Help
  375.   if Help then
  376.     put "'chooser' Button" & return & return & "Click this button to go to the Chooser screen" && "and select other network services" into field explainer
  377.   else
  378.     ChangeCurs 13000
  379.     put "'Chooser' Button" & return & "click to change service" into fld "Tell"
  380.   end if
  381. end mouseEnter
  382.  
  383. on mouseLeave
  384.   global Help
  385.   if help then
  386.   else
  387.     changeCurs 6069
  388.     put empty into fld "Tell"
  389.   end if
  390. end mouseleave
  391.  
  392. On mouseDown
  393.   Global ClickSND
  394.   play ClickSND
  395. End mouseDown
  396.  
  397.  
  398. -- part 62 (button)
  399. -- low flags: 00
  400. -- high flags: 0000
  401. -- rect: left=59 top=127 right=210 bottom=151
  402. -- title width / last selected line: 0
  403. -- icon id / first selected line: 0 / 0
  404. -- text alignment: 1
  405. -- font id: 0
  406. -- text size: 12
  407. -- style flags: 0
  408. -- line height: 16
  409. -- part name: Macintosh
  410. ----- HyperTalk script -----
  411. on mouseUp
  412.   set the visible of cd fld "Side1" to not the visible of cd fld "Side1"
  413. end mouseUp
  414.  
  415. on mouseEnter
  416.   changeCurs 6069
  417.   put "Macintosh System" & return & "click to configure network" into fld "Tell"
  418. end mouseEnter
  419.  
  420. on mouseLeave
  421.   changeCurs 69
  422.   put empty into fld "Tell"
  423. end mouseleave
  424.  
  425.  
  426. -- part 68 (button)
  427. -- low flags: 00
  428. -- high flags: 0000
  429. -- rect: left=361 top=124 right=213 bottom=482
  430. -- title width / last selected line: 0
  431. -- icon id / first selected line: 0 / 0
  432. -- text alignment: 1
  433. -- font id: 0
  434. -- text size: 12
  435. -- style flags: 0
  436. -- line height: 16
  437. -- part name: Host
  438. ----- HyperTalk script -----
  439. on mouseUp
  440.   set the visible of cd fld "Side2" to not the visible of cd fld "Side2"
  441. end mouseUp
  442.  
  443. on mouseEnter
  444.   global env
  445.   changeCurs 6069
  446.   put "Show" && env && "Products" & return & "click to select product" into fld "Tell"
  447. end mouseEnter
  448.  
  449. on mouseLeave
  450.   changeCurs 69
  451.   put empty into fld "Tell"
  452. end mouseleave
  453.  
  454.  
  455. -- part 83 (field)
  456. -- low flags: 01
  457. -- high flags: 0001
  458. -- rect: left=100 top=67 right=84 bottom=242
  459. -- title width / last selected line: 0
  460. -- icon id / first selected line: 0 / 0
  461. -- text alignment: 0
  462. -- font id: 156
  463. -- text size: 14
  464. -- style flags: 16640
  465. -- line height: 18
  466. -- part name: Title
  467.  
  468.  
  469. -- part 84 (button)
  470. -- low flags: 00
  471. -- high flags: 0000
  472. -- rect: left=151 top=116 right=208 bottom=362
  473. -- title width / last selected line: 0
  474. -- icon id / first selected line: 0 / 0
  475. -- text alignment: 1
  476. -- font id: 0
  477. -- text size: 12
  478. -- style flags: 0
  479. -- line height: 16
  480. -- part name: mask
  481.  
  482.  
  483. -- part 64 (field)
  484. -- low flags: 81
  485. -- high flags: 0007
  486. -- rect: left=28 top=86 right=181 bottom=242
  487. -- title width / last selected line: 0
  488. -- icon id / first selected line: 0 / 0
  489. -- text alignment: 65535
  490. -- font id: 3
  491. -- text size: 9
  492. -- style flags: 0
  493. -- line height: 12
  494. -- part name: Side1
  495. ----- HyperTalk script -----
  496. on mouseUp
  497.   global holder,prodname4,protocol
  498.   put selectionAndHiliter() into cardline
  499.   put line cardline of me into prodname4
  500.   if prodname4 contains "side" then
  501.     hide cd btn "side1Hiliter"
  502.     hide me
  503.     put empty into prodname4
  504.     exit mouseup
  505.   end if
  506.   if prodname4 is empty or prodname4 contains "no Products" or prodname4 contains "this version" then
  507.     answer "Empty Choice!" with "Try Again"
  508.     exit mouseup
  509.   end if
  510.   put prodname4 into fld "Prodname"
  511.   set hilite of bkgnd btn id 43 to true
  512.   put "click for product info" into fld "click"
  513.   repeat with i = 1 to the number of lines of holder
  514.     if item 1 of line i of holder is prodname4 then
  515.       put item 6 of line i of holder into dotnames
  516.       put offset("‚Ä¢",dotnames) into num
  517.       if num is empty or num is 0 then
  518.         put "Click below left CPU to see more about" && prodname4 into cd fld "Protocol"
  519.         exit repeat
  520.       else
  521.         put char 1 to (num - 1) of dotnames into protocol
  522.         put prodname4 && "uses " & protocol into cd fld "Protocol"
  523.       end if
  524.     end if
  525.   end repeat
  526.   hide cd btn "side1Hiliter"
  527.   hide me
  528. end mouseUP
  529.  
  530. On mouseDown
  531.   Global ClickSND
  532.   play ClickSND
  533. End mouseDown
  534.  
  535. on mouseEnter
  536.   changeCurs 6069
  537.   put "Products Field" & return & "click to select a product" into fld "Tell"
  538. end mouseEnter
  539.  
  540. on mouseLeave
  541.   changeCurs 69
  542.   put empty into fld "Tell"
  543. end mouseleave
  544.  
  545.  
  546.  
  547. -- part 65 (field)
  548. -- low flags: 81
  549. -- high flags: 0007
  550. -- rect: left=242 top=86 right=181 bottom=463
  551. -- title width / last selected line: 0
  552. -- icon id / first selected line: 0 / 0
  553. -- text alignment: 0
  554. -- font id: 3
  555. -- text size: 9
  556. -- style flags: 0
  557. -- line height: 12
  558. -- part name: Side2
  559. ----- HyperTalk script -----
  560. on mouseUp
  561.   global holder,prodname5,protocol1
  562.   put selectionAndHiliter() into cardline
  563.   put line cardline of me into prodname5
  564.   if prodname5 is empty or prodname5 contains "no Products" or prodname5 contains "this version" then
  565.     answer "Empty Choice!" with "Try Again"
  566.     put empty into prodname5
  567.     exit mouseup
  568.   end if
  569.   if prodname5 contains "side:" then
  570.     hide cd btn "side2Hiliter"
  571.     hide me
  572.     exit mouseup
  573.   end if
  574.   put prodname5 into fld "Prodname2"
  575.   set hilite of bkgnd btn id 52 to true
  576.   put "click for product info" into fld "click2"
  577.   repeat with i = 1 to the number of lines of holder
  578.     if item 2 of line i of holder is prodname5 then
  579.       put item 6 of line i of holder into dotnames
  580.       put offset("‚Ä¢",dotnames) into num
  581.       if num is empty or num is 0 then
  582.         put "Click below left CPU to see more about" && prodname5 into cd fld "Protocol2"
  583.         exit repeat
  584.       else
  585.         put char 1 to (num - 1) of dotnames into protocol1
  586.         put prodname5 && "uses " & protocol1 into cd fld "Protocol2"
  587.       end if
  588.     end if
  589.   end repeat
  590.   hide cd btn "side2Hiliter"
  591.   hide me
  592. end mouseUP
  593.  
  594. On mouseDown
  595.   Global ClickSND
  596.   play ClickSND
  597. End mouseDown
  598.  
  599. on mouseEnter
  600.   global env
  601.   changeCurs 6069
  602.   put env && "Products Field" & return & "click to select a product" into fld "Tell"
  603. end mouseEnter
  604.  
  605. on mouseLeave
  606.   changeCurs 69
  607.   put empty into fld "Tell"
  608. end mouseleave
  609.  
  610.  
  611.  
  612.  
  613. -- part 81 (button)
  614. -- low flags: 80
  615. -- high flags: 4000
  616. -- rect: left=243 top=123 right=136 bottom=446
  617. -- title width / last selected line: 0
  618. -- icon id / first selected line: 0 / 0
  619. -- text alignment: 1
  620. -- font id: 0
  621. -- text size: 12
  622. -- style flags: 0
  623. -- line height: 16
  624. -- part name: side2Hiliter
  625.  
  626.  
  627. -- part 80 (button)
  628. -- low flags: 80
  629. -- high flags: 4000
  630. -- rect: left=29 top=98 right=112 bottom=225
  631. -- title width / last selected line: 0
  632. -- icon id / first selected line: 0 / 0
  633. -- text alignment: 1
  634. -- font id: 0
  635. -- text size: 12
  636. -- style flags: 0
  637. -- line height: 16
  638. -- part name: side1Hiliter
  639.  
  640.  
  641. -- part contents for background part 41
  642. ----- text -----
  643. Macintosh to Digital Network¬†Services Room
  644.  
  645. -- part contents for background part 68
  646. ----- text -----
  647. Network Level
  648.  
  649. -- part contents for card part 83
  650. ----- text -----
  651. Current Service:
  652.  
  653. -- part contents for card part 7
  654. ----- text -----
  655. Digital
  656.  
  657. -- part contents for card part 63
  658. ----- text -----
  659. Mail Service